package cn.edt.ctbu.thymeleaf.repository;


import cn.edt.ctbu.thymeleaf.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;



@Repository
public interface StudentRepository extends JpaRepository<Student,Integer> {
    public List<Student> findByNameAndPassword(String name,String password);
    List<Student> findByName(String name);
    List<Student> findByNo(String no);
    List<Student> findBySex(Integer sex);
}
